<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attr_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--{:build_select('row[attr_id]', $attrLists, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}-->

            <select name="row[attr_id]" id="c-attr_id" class="form-control">
                <option value="0">--请选择--</option>
                {foreach name="attrLists" item="vo"}
                <option value="{$vo.id}">{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Value_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-value_ids" data-rule="required" data-source="product/value/index_select" data-multiple="true" class="form-control selectpage" name="row[value_ids]" type="text" value="">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[product_id]" value="{$product_id}">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
